/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import utils.BaseModel;

/**
 *
 * @author jmoura
 */
public class ScheduleBaseline extends BaseModel {

    private Project project;
    private Date created;
    private Date approved;
    private int version;
    private String comments;
    private List<Milestone> milestones = new ArrayList<>();

    /**
     * @return the project
     */
    public Project getProject() {
        return project;
    }

    /**
     * @param project the project to set
     */
    public void setProject(Project project) {
        this.project = project;
    }

    /**
     * @return the created
     */
    public Date getCreated() {
        return created;
    }

    /**
     * @param created the created to set
     */
    public void setCreated(Date created) {
        this.created = created;
    }

    /**
     * @return the approved
     */
    public Date getApproved() {
        return approved;
    }

    /**
     * @param approved the approved to set
     */
    public void setApproved(Date approved) {
        this.approved = approved;
    }

    /**
     * @return the version
     */
    public int getVersion() {
        return version;
    }

    /**
     * @param version the version to set
     */
    public void setVersion(int version) {
        this.version = version;
    }

    /**
     * @return the milestones
     */
    public List<Milestone> getMilestones() {
        return milestones;
    }

    /**
     * @param aMilestone the milestones to set
     */
    public void addMilestone(Milestone aMilestone) {
        this.milestones.add(aMilestone);
    }

    /**
     * @return the comments
     */
    public String getComments() {
        return comments;
    }

    /**
     * @param comments the comments to set
     */
    public void setComments(String comments) {
        this.comments = comments;
    }
}
